import axios from './axios'

import {baseUrl,baseUrlSet} from '@/config/config'
// 设置

export const setUp = (param) => {
    return new Promise((resolve,reject) => {
        axios({
            url: baseUrlSet + '/api/MSetting/PersonalSettings',
           params : {
			type:param.type,
			roleCode:param.roleCode,
			schoolId:param.schoolId
           }
        }).then(res => {
            resolve(res.data)
        })
    });
}
export const exit = (param) => {
	console.log(param)
    return new Promise((resolve,reject) => {
        axios({
            url: baseUrlSet + '/api/MOAuth/OpenidDel',
           params : {
			openId:param.openId
           }
        }).then(res => {
            resolve(res.data)
        })
    });
}